//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { WechatReply, WechatReplyResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooWechatReplyList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<WechatReplyResponse>(`/uctoo/wechat_reply/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooWechatReply = async (id: string) => {
  return requestClient.get<WechatReply>(`/uctoo/wechat_reply/${id}`);
};

export const adductooWechatReply = async (data: Partial<WechatReply>) => {
  return requestClient.post<WechatReply>('/uctoo/wechat_reply/add', data);
};

export const edituctooWechatReply = async (data: Partial<WechatReply>) => {
  return requestClient.post<WechatReply>('/uctoo/wechat_reply/edit', data);
};

export const deleteuctooWechatReply = async (id: string) => {
  return requestClient.post<any>('/uctoo/wechat_reply/del', { id });
};
